home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-11 | 1.9 KB | 44 lines | [TEXT/GEOL] |
- Item 2801205 11-May-90 16:14PDT
-
- From: D4202 HLH Assoc, Seth Haberman,PRT
-
- To: CPLUS.DEV$ C++ Interest List--Developers
-
- Sub: Pointers from Hell
-
-
-
- To the c++ population:
-
-
- I have been doing some c++ programming in windows for the ibm (ugh) and
- will start programming on the mac to make the product available for both
- machines. Because windows uses a memory manager very similar to the macs I
- think this question will be relevant to both groups. Basically, when one
- starts using either environment there is always the tremendous headache
- involving locked memory and movable memory blocks. When some classes are
- created that don't have any likns then everything is kosher. However, when
- even a simple thing like a linked list is attempted there has to be pointers
- to/from other objects. Now when things are moving about in memory (which they
- should never do here), these objects have to be locked down so that all the
- pointers remain valid. Is there a common way in the mac world for dealing with
- this situation. Do you lock everything down (create a local heap) or is every
- pointer really a handle which gets double dereferenced. (in the ibm world, the
- master pointer is actually returned to the user as an integer which then is
- locked with a call to:
- void far *GlobalLock(Handle theInteger).)
- The latter method wastes quite a bit of time and space (double dereference for
- all! pointers, master pointers everywhere). Is there a standard way of
- handling this in the (hopefully) nicer macintosh world? Your ideas and
- suggestions will be greatly appreciated.
-
- Another question:
- Is there a publication of the more advanced/esoteric c++ problems in
- the apple domain (i.e. constructing objects from the disk whilst they are of
- unknown type).
-
- - scot shinderman
- - montage group, nyc.
-
-
-